from functools import wraps

def proper_decorator(func):
    """正确的装饰器，保留元数据"""
    @wraps(func)
    def wrapper(*args, **kwargs):
        print(f"调用函数: {func.__name__}")
        return func(*args, **kwargs)
    return wrapper

@proper_decorator
def example_tool(query: str) -> str:
    """示例工具"""
    return "结果"

print("函数名称:", example_tool.__name__)
print("函数文档:", example_tool.__doc__)
print("函数类型:", type(example_tool))